function getBond() {

    $.ajax({
        url : "/DrivingMan/test/getCarBond.do",
        type : "post",
        dataType : "json",
        success : function(result) {

            var carList = result.data;
            console.log(carList);
            var A = carList.A;
            console.log(A);
            var B = carList.B;
            console.log(B);
        },
        error : function() {

        }
    });
}

function getcarslink() {

    $.ajax({
        url : "/DrivingMan/test/getCarlink.do",
        type : "post",
        dataType : "json",
        success : function(result) {

            var a = result.data;
            $("#carInfo").html(a);
        },
        error : function() {

        }
    });
}

function queryInfo() {

    var pinpai = $("#Select1").val();
    var chexi = $("#Select2").val();
    var chexingming = $("#Select3").val();
    console.log(pinpai);
    $.ajax({
        url : "/DrivingMan/test/queryInfo.do",
        type : "post",
        data : {
            "pinpai" : pinpai,
            "chexi" : chexi,
            "chexingming" : chexingming,
        },
        dataType : "json",
        success : function(result) {

            var a = result.data;
            console.log(a);
            for ( var i = 0; i < a.length; i++) {
                $("#carprice").html(a[i].jiaqian);
                $("#pinpai").html(a[i].pinpai);
                $("#chexing").html(a[i].chexi);
                $("#chexingname").html(a[i].chexingname);
                $("#jibie").html(a[i].jibie);
                $("#fadongji").html(a[i].fadongji);
                $("#biansuxiang").html(a[i].biansu);
                $("#cheshen").html(a[i].chejiegou);
                $("#ckg").html(a[i].ckg);
                $("#zhouju").html(a[i].zhouju);
                $("#youxiang").html(a[i].youxiangrongji);
                $("#zuoweishu").html(a[i].zuoweishu);
                $("#pailiang").html(a[i].pailiang);
                $("#jinqi").html(a[i].peiqijiegou);
                $("#qigang").html(a[i].qigangshu);
                $("#maxmali").html(a[i].maxml);
                $("#maxnj").html(a[i].maxnj);
                $("#ranyoutype").html(a[i].ranyouxingshi);
                $("#ranhoubianhao").html(a[i].ranyoubianhao);
                $("#gongyou").html(a[i].gongyoufangshi);
                $("#paifang").html(a[i].paifangbianzhun);
                $("#qudong").html(a[i].qudongfangshi);
                $("#zhuli").html(a[i].zhuli);
                $("#qianxuangua").html(a[i].qianxuanjia);
                $("#houxuangua").html(a[i].houxuanjia);
                $("#qianzhidong").html(a[i].qianzhidong);
                $("#houzhidong").html(a[i].houzhidong);
                $("#zhuchezhidong").html(a[i].zhucheleixing);
                $("#yuanguangdeng").html(a[i].yuanguangdeng);
                $("#jinguangdeng").html(a[i].jinguangdeng);
            }
        }
    });
}